package com.spring.future.modules.sys.mapper;

import com.spring.future.common.mybatis.domain.Page;
import com.spring.future.common.mybatis.domain.Pageable;
import com.spring.future.modules.sys.domain.New;
import com.spring.future.modules.sys.domain.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2017/1/17.
 */
@Mapper
public interface NewMapper {

    Page<New> findPage(@Param("pageable") Pageable pageable, @Param("p") Map<String, Object> map);

    New findOne(String id);
}
